package com.songlanyun.modules.usergains.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.songlanyun.modules.usergains.entity.UserOrderGains;
import com.songlanyun.modules.usergains.model.UserOrderGainsVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * 商家销售商品所得表
 *
 * @author wuchao
 * @email sunlightcs@gmail.com
 * @date 2020-12-22 15:21:52
 */
@Mapper
public interface UserOrderGainsDao extends BaseMapper<UserOrderGains> {

    List<UserOrderGainsVo> queryList(@Param("params") Map<String, Object> params);

    BigDecimal pullNewStatistics(Long userId);

    BigDecimal extensionStatistics(Long userId);

    BigDecimal loadByWaitAccount(Long userId);
}
